[Extension()] public static IEnumerable<T> Union<T>( IEnumerable<T> seq, HashSet<T> hashset )
Parameters
- seq
- A sequence of elements whose distinct elements form the second set for the union.
- hashset
- An hashset of elements whose distinct elements form the first set for the union.
Type Parameters
- T
- The code element type of the elements of the hashset and the sequence.
Return Value
A sequence that contains the elements that form the set union of the sequence and the hashset, excluding duplicates.